home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
text
/
xes.lha
/
XES
/
REXX
/
SaveFile.xdme
< prev
next >
Wrap
Text File
|
1995-08-01
|
996b
|
36 lines
/* $VER: SaveFile.xdme 1.0 (01 Aug 1995) */
/* Copyright © 1994 Fergus Duniho */
if ~show("L","rexxsupport.library") then
if ~addlib("rexxsupport.library",0,-30,0) then exit
options results
address 'XDME.1'
'rxresult $method'
method = result
compressor = "LIBS:compressors/xpk" || method || ".library"
'rxresult $filename'
fullname = result
IF method = "NONE" | ~Exists(compressor) THEN DO
saveold
/* This is to compensate for a bug in XDME */
com = "protect """ || fullname || """ +rwd"
ADDRESS Command Com
END
ELSE DO
'writeto t:temp'
/* This is to compensate for a bug in XDME */
ADDRESS Command "protect t:temp +rwd"
'rxresult $password'
password = result
if password = "RESULT" then
xcom = 'execute (xpack t:temp method' method || ')'
ELSE
xcom = 'execute (xpack t:temp method' method 'password "' || password || '")'
xcom
xcom = "execute (copy t:temp """ || fullname || """)"
xcom
CALL Delete("t:temp")
END